package com.gimi.test_jpa.com.gimi.controller.pub;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@Slf4j
public class PublicController {

    /**
     * 默认跳转Swagger页面
     * @return
     */
    @RequestMapping("/")
    public String toswagger() {
        log.info("================跳转Swagger页面=================");
        return "redirect:" + "/swagger-ui.html";
    }

    /**
     * 跳转druid监控页面
      * @return
     */
    @RequestMapping("/d")
    public String toDruid(){
        log.info(">>>>>>>>>>>跳转Druid监控管理页面>>>>>>>>>>");
        return "redirect:"+"/druid/sql.html";
    }
}
